﻿using DFGK_WMS.Model.DTO;
using DFGK_WMS.Model.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DFGK_WMS.IRepository
{
    public interface IUnitRulesRepository: IBaseRepository<UnitOfMeasurementRules>
    {
        /// <summary>
        /// 添加计量单位换算规则
        /// </summary>
        /// <param name="warningRules"></param>
        /// <returns></returns>
        bool AddUnitRules(UnitOfMeasurementRules unitRules);

        /// <summary>
        /// 删除计量单位换算规则
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool DelUnitRules(int id);

        /// <summary>
        /// 修改计量单位换算规则
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        bool UpdUnitRules(UnitOfMeasurementRules unitRules);

        /// <summary>
        /// 查询计量单位换算规则
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        UnitOfMeasurementRules GetUnitRules(int id);

        /// <summary>
        /// 查询计量单位换算规则
        /// </summary>
        /// <returns></returns>
        List<UnitOfMeasurementRules> GetUnitRulesList(int pageIndex, int pageSize);

    }
}
